<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page language="java" import="java.util.ArrayList" %>
<%@ page language="java" import="pe.gob.onpe.pojo.*" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<title>VE:::: ONPE :: CONFIRMAR VOTO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style16 {font-size: 14px}
.style18 {font-family: Arial, Helvetica, sans-serif}
.style21 {font-size: 16px}
.style23 {
	font-size: 14px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FF0000;
}
-->
</style>
	<script type="text/javascript" src="js/jquery.js" ></script>
	<script language="javascript" type="text/javascript" src="js/util.js"></script>

	<script language="javascript" src="js/cedulaVotacion.js" ></script>
	<link href="css/stylevot.css" rel="stylesheet" type="text/css">
</head>
<body class="bodystandar" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" >
<form id="voto"  method="get" action="EmitirVotoAction.do">
	<input type="hidden" name="acc" value="mostrarMensajeFinal" >
	
	  <p>&nbsp;</p>
	  <p>&nbsp;</p>
	  <p>&nbsp;</p>
	  <table width="100%">
		<tr>
	    <td height="31" align="center" background="./images/biseltrans/biesl_trans.png" class="title4"> RESUMEN DE VOTACI&Oacute;N </td>
	    </tr>
	  <tr>
	  	<td>&nbsp;</td>
	  </tr>
	</table>
	
	
	<CENTER>
		<%		ProcesoElectoralTipoEleccionPojo procElecTipoElecc = (ProcesoElectoralTipoEleccionPojo)request.getAttribute("procElecTipoElecc"); %>
		<input name="procesoElectoralId" type="hidden" value="<%=procElecTipoElecc.getProcesoElectoralId()%>" />
		<input name="numColumnas" type="hidden" value="<%=request.getAttribute("numColumnas")%>" >
		<input name="numFilas" type="hidden" value="<%=request.getAttribute("numFilasVoto")%>" >
		
	<table border="0" >
		<tr>
	<%		int numColumnas = Integer.parseInt(request.getParameter("numColumnas").toString()); 
			for(int i=0;i<numColumnas;i++){ %>
				<td align="center" valign="top" >
			
				<table border="0" width="100%">
					<tr bgcolor="#FFFFFF">
					<td bgcolor="#D5E1F9" bordercolor="#CCCCCC" width="220" height="70" align="center" >
					<strong><span class="title1" >
				<%	if(i==0){	out.print(procElecTipoElecc.getNombretipoeleccion1());	}
					if(i==1){	out.print(procElecTipoElecc.getNombretipoeleccion2());	}
					if(i==2){	out.print(procElecTipoElecc.getNombretipoeleccion3());	}
				%></span></strong>
					</td>
					</tr>
				</table>
				</td>
		<%	} %>
		</tr>
		<tr>
		<% ArrayList arrayListCols = (ArrayList)request.getAttribute("arrayListCols");
			for(int i=0;i<arrayListCols.size();i++){
				ArrayList listCandidatos = (ArrayList)arrayListCols.get(i); %>
			<td align="center" valign="top" >
				<table border="0" width="100%" >	
			<%	for(int k=0;k<listCandidatos.size();k++){
					ListaCandidatosPostulantePojo oListaCandidatosPostulantePojo = (ListaCandidatosPostulantePojo)listCandidatos.get(k);
				%><tr bgcolor="#FFFFFF">
					<td bgcolor="#D5E1F9" bordercolor="#CCCCCC" width="220" height="70" >
						<input type="hidden" 
							name="<%=""+(i+1)+"-"+(k+1)%>"  
							value="<%=oListaCandidatosPostulantePojo.getId().getListacandidatospostulanteId()%>" >
						<strong><span class="title1">
							<%=oListaCandidatosPostulantePojo.getNombre()%>
						</span></strong>
					</td>
					<td bgcolor="#D5E1F9" width="70" height="70" align="center" >
						<img src="./numeros/50/<%=oListaCandidatosPostulantePojo.getNumeroListaCandidato()%>.GIF" >
					</td>
				</tr>
			<%	} %>
			</table></td>
		<%	} %>
		</tr>
	</table>
	<br/>
	<table align="center" width="853">
	  <tr>
	    <td width="401" align="center" valign="middle" class="">
			<input name="button" type="button" class="boton3" onClick="fn_corregirVoto();" value="Corregir Voto"/>
		</td>
	    <td width="440" align="center">
			<input name="btnVotar" type="button" class="boton2_2" value="Votar" onClick="registrarVoto();"/>
		</td>
	  </tr>
	</table>
	</CENTER>
	<p>&nbsp;</p>
</form>
<form action="EmitirVotoAction.do" method="get" name="corregirVoto" id="corregirVoto" >
	<input type="hidden" name="acc" value="mostrarCedulaVotacion" >
</form>
</body>
</html>
